package com.example.smartcity1.network;

import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

public class RetrofitClient {

    public static final String IP = "http://124.93.196.45:10002";

    private static  Retrofit retrofit = new Retrofit.Builder()
            .baseUrl(IP)
            .addConverterFactory(GsonConverterFactory.create())
            .build();

    private RetrofitClient(){}

    public static Retrofit getRetrofit(){
        return retrofit;
    }

    public static AppService appService() {
        return retrofit.create(AppService.class);
    }
    public static ServiceService serviceService() {
        return retrofit.create(ServiceService.class);
    }
//    public static String getToken() {
//        return
//    }
}
